﻿/********************************************************************************
** @ Date:2025/05/29
** @ Author: Gaojia
** @ Description:
** @ Version:1.0.0
** @ Fun:
********************************************************************************/
#ifndef CAlgorithmContext_H
#define CAlgorithmContext_H
#include "CAlgorithmBase.h"
#include "CAlgorithmIrHy.h"
class CAlgorithmContext
{
public:
	CAlgorithmContext(QString sGuid);
	~CAlgorithmContext();
	void init(CDevBase * pIFDev, CRBaseData * pRBasicData);
	bool actionAlgorthm(SCPolItemCom *pPolItemCom, QString sTaskName);
	void closeCotDet();//关闭所有连续检测
private:
	CAlgorithmBase *getAlgorithm(int nDevType);     //获取对应的算法处理模块对象
	QString m_sGuid;   //场景GUID
	CDevBase  *m_pDev;
	CRBaseData *m_pRBasicDataNd;
	QMap<int, CAlgorithmBase*>m_mapAlgorithm;
};

#endif